package org.ghost.wechat.platform.dto.wechat.menu;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;
import java.util.List;

/**
 * @author 01
 */
public class WeChatCreateConditionalMenuReqDTO implements Serializable {
    private static final long serialVersionUID = -6225077351215242888L;
    private List<WeChatMenuDTO> button;

    private WeChatMenuRuleDTO matchRule;

    public List<WeChatMenuDTO> getButton() {
        return button;
    }

    public void setButton(List<WeChatMenuDTO> button) {
        this.button = button;
    }

    @JsonProperty(value = "matchrule")
    public WeChatMenuRuleDTO getMatchRule() {
        return matchRule;
    }

    @JsonProperty(value = "matchrule")
    public void setMatchRule(WeChatMenuRuleDTO matchRule) {
        this.matchRule = matchRule;
    }

    @Override
    public String toString() {
        return "WeChatCreateConditionalMenuReqDTO{" +
                "button=" + button +
                ", matchRule=" + matchRule +
                '}';
    }
}
